import Layout from '@/layout'

const userRouter = {
  path: '/user',
  component: Layout,
  redirect: '/user/list',
  name: 'User',
  meta: {
    title: '用户管理',
    icon: 'documentation'
  },
  hidden: true,
  children: [
    {
      path: 'list',
      component: () => import('@/views/user/index'),
      name: 'User',
      meta: { title: '用户管理', icon: 'list' }
    },
    {
      path: 'detail/:uid',
      component: () => import('@/views/user/detail'),
      name: 'UserDetail',
      meta: { title: '用户详情', icon: '' },
      hidden: true
    }
  ]
}

export default userRouter